package org.xin.security.config.properties;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;

import java.util.Set;

/**
 * @author ：xin
 * @date ：Created in 2021/10/3
 * @desc <p>  </p>
 * @modified By：$
 * @version: $
 */
@Getter
@Setter
@ConfigurationProperties(prefix = "security", ignoreUnknownFields = false)
public class SecurityConfigProperties {
    public Token token = new Token();

    public Auth auth = new Auth();

    @Data
    public static class Token{
        private String header;
        private String secret;
        private Integer expireTime;
    }
    @Data
    public static class Auth{
        private Integer tokenExpireTime;
        private Integer saveLoginTime;
        private Integer loginTimeLimit;
        private Integer loginAfterTime;
        private Set<String> ignoreUrls;
    }
}
